drawing functions - continued

XgrFillBox
XgrFillBoxGrid
XgrFillBoxScaled

( grid, color, x1, y1, x2, y2 ) 
( grid, color, x1Grid, y1Grid, x2Grid, y2Grid ) 
( grid, color, x1#, y1#, x2#, y2# ) 

These functions fill the rectangle with opposite corners at the specified coordinates. 

color = -1 means draw in the current drawing color. 

No color attribute is changed.

XgrGetDrawpoint
XgrGetDrawpointGrid
XgrGetDrawpointScaled

( grid, @x, @y ) 
( grid, @xGrid, @yGrid ) 
( grid, @x#, @y# ) 

These functions return the current value of the appropriate drawpoint.

XgrGrabPoint
XgrGrabPointGrid XgrGrabPointScaled

( grid, @x, @y, @red, @green, @blue, @color ) 
( grid, @xGrid, @yGrid, @red, @green, @blue, @color ) 
( grid, @x#, @y#, @red, @green, @blue, @color ) 

These functions grab the color of the pixel at the appropriate drawpoint, and return the drawpoint coordinates and the color of the pixel as 16-bit color intensities (red,green,blue), and a standard color (color) . 

-1 is returned in (red,green,blue,color) if the drawpoint is outside grid or the underlying graphics system does not support this operation.

XgrMoveDelta
XgrMoveDeltaGrid
XgrMoveDeltaScaled

( grid, dx, dy ) 
( grid, dxGrid, dyGrid ) 
( grid, dx#, dy# ) 

These functions move the appropriate drawpoint to a new position computed by adding the specified offset to its current value.

XgrMoveTo
XgrMoveToGrid
XgrMoveToScaled

( grid, x, y ) 
( grid, xGrid, yGrid ) 
( grid, x#, y# ) 

These functions set the appropriate drawpoint to the specified value. These functions are equivalent to XgrSetDrawpoint() functions.

XgrSetDrawpoint
XgrSetDrawpointGrid
XgrSetDrawpointScaled

( grid, x, y ) 
( grid, xGrid, yGrid ) 
( grid, x#, y# ) 

These functions set the appropriate drawpoint to the specified value. These functions are equivalent to XgrSetDrawpoint() functions.